<?php defined('SYSPATH') or die('No direct script access.');

class Model_Attribute extends ORM {

	// contains many relations
	protected $_has_many = array(
		// an attribute has many values
		'values' => array(
			'model' => 'value',
			'foreign_key' => 'attribute_id',
		),
	);
	
	protected $_belongs_to = array(
		'category' => array(
			'model' => 'category',
			'foreign_key' => 'category_id',
		),
	);
}